package com.action.system;

import java.util.List;

import com.action.common.WEB;
import com.opensymphony.xwork2.ActionSupport;
import com.pojo.system.COMP;
import com.service.system.ICOMPService;

public class COMPAction extends ActionSupport {
	private static final long serialVersionUID = 1L;
	
	private ICOMPService compService;
	private List<COMP>  listComp;

	public void setCompService(ICOMPService compService) {
		this.compService = compService;
	}
	
	public List<COMP> getListComp() {
		return listComp;
	}

	public void setListComp(List<COMP> listComp) {
		this.listComp = listComp;
	}

	public String findAllData(){
		//System.out.println(compService.findAllCOMP().size());
		WEB.getSession().put("listComp", compService.findAllCOMP());
		return SUCCESS;
	}
}
